package com.bibrApp.difu.utils;

import android.text.TextUtils;

import com.bibrApp.difu.DfApp;
import com.bibrApp.difu.Response.LoginResponseBody;

public class VerifyCodeUtils {
    /**
     * 二次验证获取用户验证码
     *
     * @return 账号
     */
    public static String getAccount(DfApp dfApp) {
        LoginResponseBody data = dfApp.getmData();
        String mobile = data.getCenterUserMain().getPhone();
        String email = data.getCenterUserMain().getEmail();
        int regType = data.getCenterUserMain().getRegType();//0:手机
        return regType == 0 ? mobile: email;

    }
}
